<template>
  <div id="app">
    <router-view></router-view>
    <tab-bar>
      <tab-bar-item path="home">
        <img slot="item-img" src="./assets/img/tabbar/index.svg" alt="">
        <img slot="item-img-active" src="./assets/img/tabbar/index_active.svg" alt="">
        <p slot="item-txt">首页</p>
      </tab-bar-item>
      <tab-bar-item path="goods">
        <img slot="item-img" src="./assets/img/tabbar/goods.svg" alt="">
        <img slot="item-img-active" src="./assets/img/tabbar/goods_active.svg" alt="">
        <p slot="item-txt">商品</p>
      </tab-bar-item>
      <tab-bar-item path="cart">
        <img slot="item-img" src="./assets/img/tabbar/cart.svg" alt="">
        <img slot="item-img-active" src="./assets/img/tabbar/cart_active.svg" alt="">
        <p slot="item-txt">购物车</p>
      </tab-bar-item>
      <tab-bar-item path="profile">
        <img slot="item-img" src="./assets/img/tabbar/profile.svg" alt="">
        <img slot="item-img-active" src="./assets/img/tabbar/profile_active.svg" alt="">
        <p slot="item-txt">我的</p>
      </tab-bar-item>
    </tab-bar>
  </div>
</template>

<script>
import TabBar from './components/tabbar/Tabbar'
import TabBarItem from './components/tabbar/TabBarItem'

export default {
  name: 'App',
  components: {
    TabBar,
    TabBarItem
  }
}
</script>

<style>
  @import './assets/css/reset.css';
</style>
